package com.example.bili.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Trend)实体类
 *
 * @author makejava
 * @since 2025-02-24 14:27:27
 */
public class Trend implements Serializable {
    public Trend() {
    }

    private static final long serialVersionUID = -68006546991494503L;
    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 标题
     */
    private String title;
    /**
     * 文本/视频无文本
     */
    private String conttxt;
    /**
     * 图片/视频路径
     */
    private String contentUrl;
    /**
     * 封面
     */
    private String fengmian;
    /**
     * 内容介绍
     */
    private String content;
    /**
     * 在线观看人数
     */
    private Integer onwers;
    /**
     * 播放率
     */
    private Integer playCountid;
    /**
     * 完播率
     */
    private Double comRateid;
    /**
     * 视频时长
     */
    private String comratetime;
    /**
     * 类型1视频 0图片
     */
    private Integer typecont;
    /**
     * 类型
     */
    private Integer typeid;
    /**
     * 1正常状态 0下架状态
     */
    private Integer isTrendlock;
    /**
     * 点赞量
     */
    private Integer likeid;
    /**
     * 投币量
     */
    private Integer putCointid;
    /**
     * 收藏量
     */
    private Integer collectId;
    /**
     * 发布人id
     */
    private Integer userId;
    /**
     * up名
     */
    private String upname;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createdtime;
    /**
     * 修改者
     */
    private Integer updatedtrendId;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date updatedtime;
    //辅助
    private String typetxt;
    private String zqjbfl;


    //辅助字段
    private int zanNum;
    private int zanNum2;
    private int favorNum;
    private int commentsNum;
    private int pointNum;
    private String uAvatarUrl;

    private String address;
    private String uname;



    public String getuAvatarUrl() {
        return uAvatarUrl;
    }

    public void setuAvatarUrl(String uAvatarUrl) {
        this.uAvatarUrl = uAvatarUrl;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public int getZanNum() {
        return zanNum;
    }

    public void setZanNum(int zanNum) {
        this.zanNum = zanNum;
    }

    public int getZanNum2() {
        return zanNum2;
    }

    public void setZanNum2(int zanNum2) {
        this.zanNum2 = zanNum2;
    }

    public int getFavorNum() {
        return favorNum;
    }

    public void setFavorNum(int favorNum) {
        this.favorNum = favorNum;
    }

    public int getCommentsNum() {
        return commentsNum;
    }

    public void setCommentsNum(int commentsNum) {
        this.commentsNum = commentsNum;
    }

    public int getPointNum() {
        return pointNum;
    }

    public void setPointNum(int pointNum) {
        this.pointNum = pointNum;
    }

    public String getUAvatarUrl() {
        return uAvatarUrl;
    }

    public void setUAvatarUrl(String uAvatarUrl) {
        this.uAvatarUrl = uAvatarUrl;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getConttxt() {
        return conttxt;
    }

    public void setConttxt(String conttxt) {
        this.conttxt = conttxt;
    }

    public String getContentUrl() {
        return contentUrl;
    }

    public void setContentUrl(String contentUrl) {
        this.contentUrl = contentUrl;
    }

    public String getFengmian() {
        return fengmian;
    }

    public void setFengmian(String fengmian) {
        this.fengmian = fengmian;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getOnwers() {
        return onwers;
    }

    public void setOnwers(Integer onwers) {
        this.onwers = onwers;
    }

//    public Integer getPlaycountid() {
//        return playcountid;
//    }
//
//    public void setPlaycountid(Integer playcountid) {
//        this.playcountid = playcountid;
//    }
//
//    public Double getComrateid() {
//        return comrateid;
//    }
//
//    public void setComrateid(Double comrateid) {
//        this.comrateid = comrateid;
//    }

    public String getComratetime() {
        return comratetime;
    }

    public void setComratetime(String comratetime) {
        this.comratetime = comratetime;
    }

    public Integer getTypecont() {
        return typecont;
    }

    public void setTypecont(Integer typecont) {
        this.typecont = typecont;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

//    public Integer getIstrendlock() {
//        return istrendlock;
//    }
//
//    public void setIstrendlock(Integer istrendlock) {
//        this.istrendlock = istrendlock;
//    }

    public Integer getLikeid() {
        return likeid;
    }

    public void setLikeid(Integer likeid) {
        this.likeid = likeid;
    }

//    public Integer getPutcointid() {
//        return putcointid;
//    }
//
//    public void setPutcointid(Integer putcointid) {
//        this.putcointid = putcointid;
//    }
//
//    public Integer getCollectid() {
//        return collectid;
//    }
//
//    public void setCollectid(Integer collectid) {
//        this.collectid = collectid;
//    }
//
//    public Integer getUserid() {
//        return userid;
//    }
//
//    public void setUserid(Integer userid) {
//        this.userid = userid;
//    }

    public String getUpname() {
        return upname;
    }

    public void setUpname(String upname) {
        this.upname = upname;
    }

    public Date getCreatedtime() {
        return createdtime;
    }

    public void setCreatedtime(Date createdtime) {
        this.createdtime = createdtime;
    }

//    public Integer getUpdatedtrendid() {
//        return updatedtrendid;
//    }
//
//    public void setUpdatedtrendid(Integer updatedtrendid) {
//        this.updatedtrendid = updatedtrendid;
//    }

    public Date getUpdatedtime() {
        return updatedtime;
    }

    public void setUpdatedtime(Date updatedtime) {
        this.updatedtime = updatedtime;
    }


    public String getTypetxt() {
        return typetxt;
    }

    public void setTypetxt(String typetxt) {
        this.typetxt = typetxt;
    }

    public String getZqjbfl() {
        return zqjbfl;
    }

    public void setZqjbfl(String zqjbfl) {
        this.zqjbfl = zqjbfl;
    }


    public Integer getPlayCountid() {
        return playCountid;
    }

    public void setPlayCountid(Integer playCountid) {
        this.playCountid = playCountid;
    }

    public Double getComRateid() {
        return comRateid;
    }

    public void setComRateid(Double comRateid) {
        this.comRateid = comRateid;
    }

    public Integer getIsTrendlock() {
        return isTrendlock;
    }

    public void setIsTrendlock(Integer isTrendlock) {
        this.isTrendlock = isTrendlock;
    }

    public Integer getPutCointid() {
        return putCointid;
    }

    public void setPutCointid(Integer putCointid) {
        this.putCointid = putCointid;
    }

    public Integer getCollectId() {
        return collectId;
    }

    public void setCollectId(Integer collectId) {
        this.collectId = collectId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getUpdatedtrendId() {
        return updatedtrendId;
    }

    public void setUpdatedtrendId(Integer updatedtrendId) {
        this.updatedtrendId = updatedtrendId;
    }

    @Override
    public String toString() {
        return "Trend{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", conttxt='" + conttxt + '\'' +
                ", contentUrl='" + contentUrl + '\'' +
                ", fengmian='" + fengmian + '\'' +
                ", content='" + content + '\'' +
                ", onwers=" + onwers +
                ", playCountid=" + playCountid +
                ", comRateid=" + comRateid +
                ", comratetime='" + comratetime + '\'' +
                ", typecont=" + typecont +
                ", typeid=" + typeid +
                ", isTrendlock=" + isTrendlock +
                ", likeid=" + likeid +
                ", putCointid=" + putCointid +
                ", collectId=" + collectId +
                ", userId=" + userId +
                ", upname='" + upname + '\'' +
                ", createdtime=" + createdtime +
                ", updatedtrendId=" + updatedtrendId +
                ", updatedtime=" + updatedtime +
                ", typetxt='" + typetxt + '\'' +
                ", zqjbfl='" + zqjbfl + '\'' +
                ", zanNum=" + zanNum +
                ", zanNum2=" + zanNum2 +
                ", favorNum=" + favorNum +
                ", commentsNum=" + commentsNum +
                ", pointNum=" + pointNum +
                ", uAvatarUrl='" + uAvatarUrl + '\'' +
                ", address='" + address + '\'' +
                ", uname='" + uname + '\'' +
                '}';
    }
}

